package com.hsgene.gateway.service.api.impl;

import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.gateway.service.api.SecurityService;
import org.springframework.stereotype.Component;

/**
 * 安全服务Impl
 *
 * @author wangbing
 * @version 1.0, 2018/7/11
 */
@Component
public class SecurityServiceImpl implements SecurityService {
    @Override
    public ApiResult<String> rsaDecrypt(String encryptData) {
        return ApiResult.fail(CommonErrorCode.SECURITY_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<String> rsaEncrypt(String originData) {
        return ApiResult.fail(CommonErrorCode.SECURITY_SERVICE_NOT_AVAILABLE);
    }
}
